If Git is not already installed on your system download the newest version from http://git-scm.com

Tutorial:

A good tutorial for git can be found at http://www.kernel.org/pub/software/scm/git/docs/gittutorial.html and a more detailed tutorial can be found at http://progit.org/book/.

Examples:

Before you work through these examples you should have read tutorial above and know how to checkout and commit code to a repository.

This example explains how to clone and use an existing repository (comsol) and how to use it.

If you want to create a public repository so that somebody else can access your code: